#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/3/4
import pickle

from day6.shelve模块 import Test

t = Test(123334)

t2 = Test(1234)

name = ["alex", "rain", "eric"]

f = open("pickle_test.pickle", "wb")

pickle.dump(name, f)
pickle.dump(t, f)
pickle.dump(t2, f)
# 多次dump不会覆盖 会追加

f.close()


